
Vue.component('learn_page',{
	template:"#learn_page",
	data(){
		return {}
	}
})

Vue.component('TV_page',{
	template:"#TV_page",
	data(){
		return {
			dialogVisible: false,
			fanju:[
				{
					title:"辉夜大小姐想让我告白",
					tag:"更新至第8话",
					cover_url:"img/fan1.png",
				},
				{
					title:"【4月】公主连结Re：Dive",
					tag:"更新至第8话",
					cover_url:"img/fan2.png",
				},
				{
					title:"八男？别闹了",
					tag:"更新至第8话",
					cover_url:"img/fan3.png",
				},
				{
					title:"神之塔",
					tag:"更新至第8话",
					cover_url:"img/fan4.png",
				},
				{
					title:"浪客剑心",
					tag:"更新至第8话",
					cover_url:"img/fan5.png",
				},
				{
					title:"今天开始做魔王",
					tag:"更新至第8话",
					cover_url:"img/fan6.png",
				},
				{
					title:"狼与香辛料",
					tag:"更新至第8话",
					cover_url:"img/fan7.png",
				},
				{
					title:"进击的巨人",
					tag:"更新至第8话",
					cover_url:"img/fan8.png",
				},
				{
					title:"进击的巨人PV",
					tag:"更新至第8话",
					cover_url:"img/fan9.png",
				},
				{
					title:"地狱少女",
					tag:"更新至第8话",
					cover_url:"img/fan10.png",
				},
			]
		}
	}
})

Vue.component('Cover-19',{
	template:"#Cover-19",
	data(){
		return {}
	}
})

Vue.component('recommond_page',{
	template:"#recommond_page",
	data(){
		return {}
	}
})

Vue.component('live_page',{
	template:"#live_page",
	data(){
		return {}
	}
})

Vue.component('main_page',{
	template:"#main_page",
	data(){
		return {
			dialogVisible: false,
			cover_source:[
				"./img/bilibili_logo.png",
				"./img/bilibili_logo.1.png",
				"./img/bilibili_logo.2.png",
			],
			video_source:[
				{
					title:"【矢野浩二】30年前，我是如何从酒保转行演员的？",
					tag:"娱乐 > 明星",
					popularation:"12.0万",
					comments:1769,
					length:"9:17",
					cover_url:"img/cover1.png",
				},
				{
					title:"曾火爆全网的《Falling Again》，你是否还知道？",
					tag:"动画 > MAD",
					comments:7076,
					popularation:"219.5万",
					length:"2:40",
					cover_url:"img/cover2.jpg",
				},
				{
					title:"可奈的伊利亚",
					tag:"动画 > 综合",
					popularation:"8.0万",
					comments:270,
					length:"1:51",
					cover_url:"img/cover3.jpg",
				},
				{
					title:"《一拳超人》龙卷和光头PK后看清实力差距了吗？",
					tag:"动画 > 综合",
					comments:1487,
					popularation:"124.2万",
					length:"4:24",
					cover_url:"img/cover4.jpg",
				},
				{
					title:"17岁拿下影帝，43岁沉迷生活：我只是随心而做",
					tag:"明星 > 娱乐",
					popularation:"2342",
					comments:2222,
					length:"5:35",
					cover_url:"img/cover5.jpg",
				},
				{
					
					title:"视频标题",
					tag:"分类标签",
					comments:2222,
					length:"视频时长(如5:00)",
					cover_url:"img/cover6.jpg",
				},
				{
					
					title:"视频标题",
					tag:"分类标签",
					comments:2222,
					length:"视频时长(如5:00)",
					cover_url:"img/cover7.jpg",
				},
				{
					
					title:"视频标题",
					tag:"分类标签",
					comments:2222,
					length:"视频时长(如5:00)",
					cover_url:"img/cover8.jpg",
				}
			],
		}
	},
	methods:{
		handleClose(done) {
			this.$confirm('确认关闭？').then(_ => {done();}).catch(_ => {});
		}
	}
})

Vue.component('container',{
			template:'#container',
			data(){
				return {
					Nav:
					[
						{
							name:"直播",
							label:"live_page"
						},
						{
							name:"推荐",
							label:"main_page"
						},
						{
							name:"热门",
							label:"recommond_page"
						},
						{
							name:"学习",
							label:"learn_page"
						},
						{
							name:"番剧",
							label:"TV_page"
						},
						{
							name:"抗击肺炎",
							label:"Cover-19"
						}
					],
					activeNav:"main_page",
					bottom_Nav:[
						{
							name:"首页",
							label:"el-icon-s-home"
							
						},
						{
							name:"频道",
							label:"el-icon-magic-stick"
						},
						{
							name:"动态",
							label:"el-icon-chat-round"
						},
						{
							name:"会员购",
							label:"el-icon-shopping-cart-2"
						},
						{
							name:"我的",
							label:"el-icon-user-solid"
						}
					],
					url_icon:"img/ava.jpg",
					content:'main_page',
				}
			},
			methods:{
				switch_template(obj,event){
					//alert("!23");
					//console.log(obj);
					this.content=obj.name;
				}
			}
		})
		var vm=new Vue({
			el:"#app",
			data(){
				return {}
			}
		})